<?php
define('ACC', true);
require('./include/init.php');
session_start(); 
//print_r($_SESSION);
$userid = $_SESSION['user_id'];

echo '<head><meta charset = "utf-8"></head>'; 

echo '<h2>过账&nbsp|&nbsp<a href = "showdailybooking.php">返回日记账页面</a></h2><br/>';    

$accounting = new accountingmodel();


$inputid = $_GET['inputid'];
$type = $_GET['type'];

if($type == 'post'){
    $accounting->post($inputid);
    echo '过账完成';   
}else{
    $accounting->revpost($inputid); 
    echo '反过账完成';   
}


 
?>
